package com.aaa.mapper;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface RoomMapper {
    List<Map<String, Object>> findroom(Integer rtid, String state);

    List<Map<String, Object>> roomload(Integer rtid, String state);

    Integer changestate(Integer rid);

    Integer OverTimeState(Integer id, String state);

    Integer checkout(Integer rid);

    List<Map<String, Object>> findallroom();

    Map<String, Object> findnewmoney(Integer newrid);

    Map<String, Object> findoldmoney(Integer oldid);

    void changeoldstate(Integer oldrid);

    void changenewstate(Integer newrid);

    Integer addroom(String rname, Integer tid, String state);

    List<Map<String, Object>> checkroom(String rname);

    List<Map<String, Object>> findroomnum();

    List<Map<String, Object>> findOrderedRoomnum(String startdate, String enddate, String state);

    List<Map<String, Object>> findReadyRoom(List<Map<String, Object>> list3);

    Map<String, Object> findrt(Integer rid);

    Integer checkin(Integer rid, String state);
}
